﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B5D RID: 2909
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ModifyRelicFilterPlanScRsp : IMessage<ModifyRelicFilterPlanScRsp>, IMessage, IEquatable<ModifyRelicFilterPlanScRsp>, IDeepCloneable<ModifyRelicFilterPlanScRsp>, IBufferMessage
	{
		// Token: 0x170024BB RID: 9403
		// (get) Token: 0x0600821B RID: 33307 RVA: 0x0015B4C4 File Offset: 0x001596C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ModifyRelicFilterPlanScRsp> Parser
		{
			get
			{
				return ModifyRelicFilterPlanScRsp._parser;
			}
		}

		// Token: 0x170024BC RID: 9404
		// (get) Token: 0x0600821C RID: 33308 RVA: 0x0015B4CB File Offset: 0x001596CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ModifyRelicFilterPlanScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170024BD RID: 9405
		// (get) Token: 0x0600821D RID: 33309 RVA: 0x0015B4DD File Offset: 0x001596DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ModifyRelicFilterPlanScRsp.Descriptor;
			}
		}

		// Token: 0x0600821E RID: 33310 RVA: 0x0015B4E4 File Offset: 0x001596E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanScRsp()
		{
		}

		// Token: 0x0600821F RID: 33311 RVA: 0x0015B4EC File Offset: 0x001596EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanScRsp(ModifyRelicFilterPlanScRsp other) : this()
		{
			this.slotIndex_ = other.slotIndex_;
			this.retcode_ = other.retcode_;
			this.updateTimestamp_ = other.updateTimestamp_;
			ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase infoOneofCaseCase = other.InfoOneofCaseCase;
			if (infoOneofCaseCase != ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
			{
				if (infoOneofCaseCase != ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Name)
				{
					if (infoOneofCaseCase == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
					{
						this.Icon = other.Icon.Clone();
					}
				}
				else
				{
					this.Name = other.Name;
				}
			}
			else
			{
				this.Settings = other.Settings.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008220 RID: 33312 RVA: 0x0015B57C File Offset: 0x0015977C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanScRsp Clone()
		{
			return new ModifyRelicFilterPlanScRsp(this);
		}

		// Token: 0x170024BE RID: 9406
		// (get) Token: 0x06008221 RID: 33313 RVA: 0x0015B584 File Offset: 0x00159784
		// (set) Token: 0x06008222 RID: 33314 RVA: 0x0015B58C File Offset: 0x0015978C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SlotIndex
		{
			get
			{
				return this.slotIndex_;
			}
			set
			{
				this.slotIndex_ = value;
			}
		}

		// Token: 0x170024BF RID: 9407
		// (get) Token: 0x06008223 RID: 33315 RVA: 0x0015B595 File Offset: 0x00159795
		// (set) Token: 0x06008224 RID: 33316 RVA: 0x0015B59D File Offset: 0x0015979D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170024C0 RID: 9408
		// (get) Token: 0x06008225 RID: 33317 RVA: 0x0015B5A6 File Offset: 0x001597A6
		// (set) Token: 0x06008226 RID: 33318 RVA: 0x0015B5AE File Offset: 0x001597AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long UpdateTimestamp
		{
			get
			{
				return this.updateTimestamp_;
			}
			set
			{
				this.updateTimestamp_ = value;
			}
		}

		// Token: 0x170024C1 RID: 9409
		// (get) Token: 0x06008227 RID: 33319 RVA: 0x0015B5B7 File Offset: 0x001597B7
		// (set) Token: 0x06008228 RID: 33320 RVA: 0x0015B5D2 File Offset: 0x001597D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				if (!this.HasName)
				{
					return "";
				}
				return (string)this.infoOneofCase_;
			}
			set
			{
				this.infoOneofCase_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
				this.infoOneofCaseCase_ = ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Name;
			}
		}

		// Token: 0x170024C2 RID: 9410
		// (get) Token: 0x06008229 RID: 33321 RVA: 0x0015B5EC File Offset: 0x001597EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HasName
		{
			get
			{
				return this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Name;
			}
		}

		// Token: 0x0600822A RID: 33322 RVA: 0x0015B5F7 File Offset: 0x001597F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearName()
		{
			if (this.HasName)
			{
				this.ClearInfoOneofCase();
			}
		}

		// Token: 0x170024C3 RID: 9411
		// (get) Token: 0x0600822B RID: 33323 RVA: 0x0015B607 File Offset: 0x00159807
		// (set) Token: 0x0600822C RID: 33324 RVA: 0x0015B620 File Offset: 0x00159820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanIcon Icon
		{
			get
			{
				if (this.infoOneofCaseCase_ != ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
				{
					return null;
				}
				return (RelicFilterPlanIcon)this.infoOneofCase_;
			}
			set
			{
				this.infoOneofCase_ = value;
				this.infoOneofCaseCase_ = ((value == null) ? ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.None : ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon);
			}
		}

		// Token: 0x170024C4 RID: 9412
		// (get) Token: 0x0600822D RID: 33325 RVA: 0x0015B637 File Offset: 0x00159837
		// (set) Token: 0x0600822E RID: 33326 RVA: 0x0015B64F File Offset: 0x0015984F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RelicFilterPlanSettings Settings
		{
			get
			{
				if (this.infoOneofCaseCase_ != ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
				{
					return null;
				}
				return (RelicFilterPlanSettings)this.infoOneofCase_;
			}
			set
			{
				this.infoOneofCase_ = value;
				this.infoOneofCaseCase_ = ((value == null) ? ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.None : ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings);
			}
		}

		// Token: 0x170024C5 RID: 9413
		// (get) Token: 0x0600822F RID: 33327 RVA: 0x0015B665 File Offset: 0x00159865
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase InfoOneofCaseCase
		{
			get
			{
				return this.infoOneofCaseCase_;
			}
		}

		// Token: 0x06008230 RID: 33328 RVA: 0x0015B66D File Offset: 0x0015986D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearInfoOneofCase()
		{
			this.infoOneofCaseCase_ = ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.None;
			this.infoOneofCase_ = null;
		}

		// Token: 0x06008231 RID: 33329 RVA: 0x0015B67D File Offset: 0x0015987D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ModifyRelicFilterPlanScRsp);
		}

		// Token: 0x06008232 RID: 33330 RVA: 0x0015B68C File Offset: 0x0015988C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ModifyRelicFilterPlanScRsp other)
		{
			return other != null && (other == this || (this.SlotIndex == other.SlotIndex && this.Retcode == other.Retcode && this.UpdateTimestamp == other.UpdateTimestamp && !(this.Name != other.Name) && object.Equals(this.Icon, other.Icon) && object.Equals(this.Settings, other.Settings) && this.InfoOneofCaseCase == other.InfoOneofCaseCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008233 RID: 33331 RVA: 0x0015B734 File Offset: 0x00159934
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SlotIndex != 0U)
			{
				num ^= this.SlotIndex.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.UpdateTimestamp != 0L)
			{
				num ^= this.UpdateTimestamp.GetHashCode();
			}
			if (this.HasName)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
			{
				num ^= this.Icon.GetHashCode();
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
			{
				num ^= this.Settings.GetHashCode();
			}
			num ^= (int)this.infoOneofCaseCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008234 RID: 33332 RVA: 0x0015B7F3 File Offset: 0x001599F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008235 RID: 33333 RVA: 0x0015B7FB File Offset: 0x001599FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008236 RID: 33334 RVA: 0x0015B804 File Offset: 0x00159A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Settings);
			}
			if (this.HasName)
			{
				output.WriteRawTag(66);
				output.WriteString(this.Name);
			}
			if (this.SlotIndex != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.SlotIndex);
			}
			if (this.UpdateTimestamp != 0L)
			{
				output.WriteRawTag(104);
				output.WriteInt64(this.UpdateTimestamp);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Icon);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008237 RID: 33335 RVA: 0x0015B8D0 File Offset: 0x00159AD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SlotIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SlotIndex);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.UpdateTimestamp != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.UpdateTimestamp);
			}
			if (this.HasName)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Icon);
			}
			if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Settings);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008238 RID: 33336 RVA: 0x0015B98C File Offset: 0x00159B8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ModifyRelicFilterPlanScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SlotIndex != 0U)
			{
				this.SlotIndex = other.SlotIndex;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.UpdateTimestamp != 0L)
			{
				this.UpdateTimestamp = other.UpdateTimestamp;
			}
			ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase infoOneofCaseCase = other.InfoOneofCaseCase;
			if (infoOneofCaseCase != ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
			{
				if (infoOneofCaseCase != ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Name)
				{
					if (infoOneofCaseCase == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
					{
						if (this.Icon == null)
						{
							this.Icon = new RelicFilterPlanIcon();
						}
						this.Icon.MergeFrom(other.Icon);
					}
				}
				else
				{
					this.Name = other.Name;
				}
			}
			else
			{
				if (this.Settings == null)
				{
					this.Settings = new RelicFilterPlanSettings();
				}
				this.Settings.MergeFrom(other.Settings);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008239 RID: 33337 RVA: 0x0015BA5E File Offset: 0x00159C5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600823A RID: 33338 RVA: 0x0015BA68 File Offset: 0x00159C68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 66U)
				{
					if (num == 24U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						RelicFilterPlanSettings relicFilterPlanSettings = new RelicFilterPlanSettings();
						if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Settings)
						{
							relicFilterPlanSettings.MergeFrom(this.Settings);
						}
						input.ReadMessage(relicFilterPlanSettings);
						this.Settings = relicFilterPlanSettings;
						continue;
					}
					if (num == 66U)
					{
						this.Name = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.SlotIndex = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.UpdateTimestamp = input.ReadInt64();
						continue;
					}
					if (num == 114U)
					{
						RelicFilterPlanIcon relicFilterPlanIcon = new RelicFilterPlanIcon();
						if (this.infoOneofCaseCase_ == ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase.Icon)
						{
							relicFilterPlanIcon.MergeFrom(this.Icon);
						}
						input.ReadMessage(relicFilterPlanIcon);
						this.Icon = relicFilterPlanIcon;
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040031E1 RID: 12769
		private static readonly MessageParser<ModifyRelicFilterPlanScRsp> _parser = new MessageParser<ModifyRelicFilterPlanScRsp>(() => new ModifyRelicFilterPlanScRsp());

		// Token: 0x040031E2 RID: 12770
		private UnknownFieldSet _unknownFields;

		// Token: 0x040031E3 RID: 12771
		public const int SlotIndexFieldNumber = 9;

		// Token: 0x040031E4 RID: 12772
		private uint slotIndex_;

		// Token: 0x040031E5 RID: 12773
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040031E6 RID: 12774
		private uint retcode_;

		// Token: 0x040031E7 RID: 12775
		public const int UpdateTimestampFieldNumber = 13;

		// Token: 0x040031E8 RID: 12776
		private long updateTimestamp_;

		// Token: 0x040031E9 RID: 12777
		public const int NameFieldNumber = 8;

		// Token: 0x040031EA RID: 12778
		public const int IconFieldNumber = 14;

		// Token: 0x040031EB RID: 12779
		public const int SettingsFieldNumber = 7;

		// Token: 0x040031EC RID: 12780
		private object infoOneofCase_;

		// Token: 0x040031ED RID: 12781
		private ModifyRelicFilterPlanScRsp.InfoOneofCaseOneofCase infoOneofCaseCase_;

		// Token: 0x02001A9F RID: 6815
		public enum InfoOneofCaseOneofCase
		{
			// Token: 0x040065DD RID: 26077
			None,
			// Token: 0x040065DE RID: 26078
			Name = 8,
			// Token: 0x040065DF RID: 26079
			Icon = 14,
			// Token: 0x040065E0 RID: 26080
			Settings = 7
		}
	}
}
